﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Shine.Framework
{
    public class DockableWindowClass : IDockableWindow,  IWindowPosition
    {
        private string m_Caption;
        private int m_Height;
       // private UID m_UID;
        private int m_Top;
        private int m_Left;
        private int m_Width;
        private string m_Name;
        private esriWindowState m_State;
        private esriDockFlags m_DockFlags;
       
        #region Attribute 
        public string Caption
        {
            get
            {
                return m_Caption;
            }
            set
            {
                m_Caption = value;
            }
        }

        public int Height
        {
            get
            {
                return m_Height;
            }
            set
            {
                m_Height = value;
            }
        }

        //public UID ID
        //{
        //    get
        //    {
        //        return m_UID;
        //    }
        //}

        public int Left
        {
            get
            {
                return m_Left;
            }
            set
            {
                m_Left = value;
            }
        }

        public string Name
        {
            get
            {
                return m_Name;
            }
        }

        public esriWindowState State
        {
            get
            {
                return m_State;
            }
            set
            {
                m_State = value;
            }
        }       

        public int Top
        {
            get
            {
                return m_Top;
            }
            set
            {
                m_Top = value;
            }
        }

        public object UserData
        {
            get
            {
                return null;
            }
        }

        public virtual int Width
        {
            get
            {
                return m_Width;
            }
            set
            {
                m_Width = value;
            }
        }
    
        public esriDockFlags DockFlags
        {
            get
            {
                return m_DockFlags;
            }
            set
            {
                m_DockFlags = value;
            }
        }
        #endregion

        public void Dock(esriDockFlags dockFlags)
        {

        }
       
        public void InterfaceSupportsErrorInfo(ref Guid riid)
        {

        }

        public bool IsVisible()
        {
            return true;
        }

        public void Move(int Left, int Top, int Width, int Height)
        {

        }

        public void Show(bool Show)
        {

        }
    }
}
